# Makefile for make (!)
TOP_SRCDIR = ../..
include $(TOP_SRCDIR)/Makefile.common

CFLAGS += -Dunix

OBJ =	check.o input.o macro.o main.o make.o reader.o rules.o archive.o

all:	make

make: $(OBJ) ../../lib/libc.a $(LIBGCC)
	$(LD) $(LDFLAGS) -N -Ttext 0 -o $@ $^

install: make
	strip make
	cp make ../../fs/bin

$(OBJ): h.h

clean:
	rm -f *.o *.bak core make
